#!/bin/bash

function info() {
echo Usage: `basename $0` 'beta_file'
exit 1
}

while getopts  ":p:f:" opt; do
	case  $opt  in
		p) out_prefix=$OPTARG;;
		f) suffix=$OPTARG;;
		*) info;;
	esac
done
shift $(($OPTIND - 1))


if [ $# -lt 1 ]; then info; fi

. $var


rf_methy_.pl --input $1 --out_prefix $out_prefix

sed '11,$d' $out_prefix.result.txt |sed "1i$1" |sed '$a\\n'>> prob.txt

. $cmd_done